package com.ken.blog.component;

import com.ken.blog.domain.Category;
import com.ken.blog.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CategoryComponent {
    @Autowired
    private CategoryService categoryService;

    private List categoryList;

    public List getCategoryList() {
        List<Category> categoryList = this.categoryService.getCategoryList();
        return categoryList;
    }

    public String test() {
        return "test";
    }
}